package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书籍信息对象 sys_app_bookinfo
 * 
 * @author ruoyi
 * @date 2020-09-06
 */
public class SysAppBookinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 书籍分类 */
    @Excel(name = "书籍分类")
    private Long classId;
    
    /** 书籍状态 */
    @Excel(name = "书籍状态")
    private Integer bookStatus;

    /** 分类名称 */
    @Excel(name = "书籍名称")
    private String bookName;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 书籍图片 */
    @Excel(name = "书籍图片")
    private String imageUrl;

    /** 书籍描述 */
    @Excel(name = "书籍描述")
    private String bookDescribe;

    /** 书籍简介 */
    @Excel(name = "书籍简介")
    private String bookIntroduce;

    /** 书籍价格 */
    @Excel(name = "书籍价格")
    private BigDecimal price;

    /** 是否付费（0，否；1、是） */
    @Excel(name = "是否付费", readConverterExp = "0=，否；1、是")
    private Integer isPay;
    
    /** 书籍类型（1，热门书籍；2、其他书籍） */
    @Excel(name = "书籍类型", readConverterExp = "书籍类型（1，热门书籍；2、其他书籍）")
    private Integer bookType;
    
    /** 排序字段 */
    @Excel(name = "排序字段")
    private Integer ord;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }
   
    public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setBookDescribe(String bookDescribe) 
    {
        this.bookDescribe = bookDescribe;
    }

    public String getBookDescribe() 
    {
        return bookDescribe;
    }
    public void setBookIntroduce(String bookIntroduce) 
    {
        this.bookIntroduce = bookIntroduce;
    }

    public String getBookIntroduce() 
    {
        return bookIntroduce;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIsPay(Integer isPay) 
    {
        this.isPay = isPay;
    }

    public Integer getIsPay() 
    {
        return isPay;
    }

    public Integer getBookStatus() {
		return bookStatus;
	}

	public void setBookStatus(Integer bookStatus) {
		this.bookStatus = bookStatus;
	}

	public Integer getOrd() {
		return ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	public Integer getBookType() {
		return bookType;
	}

	public void setBookType(Integer bookType) {
		this.bookType = bookType;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classId", getClassId())
            .append("bookStatus", getBookStatus())
            .append("bookName", getBookName())
            .append("author", getAuthor())
            .append("imageUrl", getImageUrl())
            .append("bookDescribe", getBookDescribe())
            .append("bookIntroduce", getBookIntroduce())
            .append("price", getPrice())
            .append("isPay", getIsPay())
            .append("bookType", getBookType())
            .append("ord", getOrd())
            .append("createTime", getCreateTime())
            .toString();
    }
}
